import request from "../request";
import {getToken} from "../../utils/auth";

export function selectVariousOrdersPie(){
    let url = "/api/echarts/variousOrdersPie";
    return request.get(url,{
        headers:{
            Token:getToken()
        }
    });
}

export function countOrderByMonth(){
    let url = "/api/echarts/countOrderByMonth";
    return request.get(url,{
        headers:{
            Token:getToken()
        }
    })
}

export function countOrderByDay(){
    let url = "/api/echarts/countOrderByDay";
    return request.get(url,{
        headers:{
            Token:getToken()
        }
    })
}

export function countGoodsOrderTop8(){
    let url = "/api/echarts/countGoodsOrderTop8";
    return request.get(url,{
        headers:{
            Token:getToken()
        }
    })
}